package main

import (
	"fmt"
	"time"
)

func main() {
	var layout string = "2023-01-02 15:04:05"
	var str string = "2006-01-02 15:04:05"
	parse, _ := time.Parse(str, layout)
	fmt.Println(parse)

	timeObj2, _ := time.ParseInLocation(str, layout, time.Local)
	fmt.Println(timeObj2)
}
